package com.beiding.dao;

import java.util.List;

public interface MessageDao {
    void removeOnlineUser(String receiver);

    //这个方法使用缓存
    void addOnlineUser(String receiver);

    List<String> getAndRemoveMessages(String receiver, String target);

    String getOnlineServer(String receiver);

    void saveMessage(String receiver, String target, String payload);
}
